package com.shiyuanshenghong.web.controller.analysispovertyscontroller;

import com.shiyuanshenghong.service.analysispovertyservice.PovertyNumber;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by fengxinzi on 2017/12/18.
 * 蓝天扶贫现状分析
 * 2017-12-18
 */
@RestController
@RequestMapping("/poverty")
public class PovertyAnalysisController {
    @Autowired
    private PovertyNumber p;

    /**
     * 返回扶贫现状分析全部信息，用map集合汇总打包发送json
     * @return
     */
    @RequestMapping("/status")
    public Map<String,Object> QueryAllById()
    {
        Map<String,Object> map=new HashMap<String,Object>();
        map.put("poorNumber",p.QueryAllById(1));
        return map;
    }


}
